package l.l.w.lianjia.One;

import java.util.Scanner;

/**
 * Created by llw on 2018/3/19/0019.
 */
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int m = 0;
        double n = 0,result = 0;
        while(scanner.hasNextInt()) {
            n = (double) scanner.nextInt();
            m = scanner.nextInt();
            for (int i = 1; i <= m; ++i) {
                result += n;
                n = Math.pow(n, 0.5);
            }
            System.out.printf("%.2f\n", result);
            result = 0;
        }
    }
}
